package com.example.consumerdemo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author kw
 * @program cloud-alibaba-demo
 * @description
 * @create 2024 - 06 - 28 09:31
 **/
@Component
@FeignClient(name = "provider-service")
public interface EchoFeignClientService {

    @GetMapping("/echo/{str}")
    String echo(@PathVariable("str") String str);
}
